﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Student : Person
    {
        private string marjor;
        private string grade;
        public Student(int id, string name, char sex, string cardid, string tel)
            : base(id, name, sex, cardid, tel)
        {

        }
        public string Marjor
        {
            get { return this.marjor; }
            set { this.marjor = value; }
        }
        public string Grade
        {
            get { return this.grade; }
            set { this.grade = value; }
        }
        public void stud() {
            Console.WriteLine("专业：{0}",this.marjor);
            Console.WriteLine();
            Console.WriteLine("年级：{0}", this.grade);

        }
    }
}
